#include <iostream>
#include <string>
using namespace std;

//https://www.nowcoder.com/practice/fcd30aac9c4f4028b23919a0c649824d?tpId=290&tqId=39833&ru=/exam/oj

string s;

int main()
{
    cin >> s;

    for (int i = 0; i < s.size(); i++)
    {
        if (s[i] % 2 == 0) s[i] = '0';
        else s[i] = '1';
    }


    cout << stoi(s) << endl;

    return 0;
}
